package com.beans.usercomponent;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Component //将对象注入到spring中
public class UserComponent {
    public void sayHello(String name){
        System.out.println("Hello "+name);
    }
}


